package Message.Game
{
    import Framework.Serialize.*;

    public class SPlayerTask extends Object
    {
        public var task:STask;
        public var executeCount:int;
        public var status:int;
        public var createDt:Date;
        public var processes:Array;

        public function SPlayerTask()
        {
            
        }

        public function __write(param1:SerializeStream) : void
        {
            this.task.__write(param1);
            param1.writeInt(this.executeCount);
            param1.writeInt(this.status);
            param1.writeDate(this.createDt);
            SeqProcessHelper.write(param1, this.processes);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.task = new STask();
            this.task.__read(param1);
            this.executeCount = param1.readInt();
            this.status = param1.readInt();
            this.createDt = param1.readDate();
            this.processes = SeqProcessHelper.read(param1);
            
        }

    }
}
